package xyz.xiaoshengfu.xrpc.config;

import java.io.Serializable;

/**
 * <p>Title: ServiceBean</p>
 * <p>Description: xRPC服务配置信息</p>
 * @author xiaoshengfu(2439323118@qq.com)
 * @date 2020年3月24日
 */
public class ServiceBean implements Serializable {

	private static final long serialVersionUID = 1L;
	private String serviceInterface;
	private String ref;
	private Integer weight;

	public ServiceBean() {
		super();
	}

	public ServiceBean(String serviceInterface, String ref, Integer weight) {
		super();
		this.serviceInterface = serviceInterface;
		this.ref = ref;
		this.weight = weight;
	}

	public String getServiceInterface() {
		return serviceInterface;
	}

	public void setServiceInterface(String serviceInterface) {
		this.serviceInterface = serviceInterface;
	}

	public String getRef() {
		return ref;
	}

	public void setRef(String ref) {
		this.ref = ref;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		return "ServiceBean [serviceInterface=" + serviceInterface + ", ref=" + ref + ", weight=" + weight + "]";
	}

}
